import 'package:fluro/fluro.dart';
import './routers.dart';


class Application{
  static FluroRouter _router = FluroRouter();
  static bool _isInitialized = true;

  static setRoute(FluroRouter r){
    _router = r;
    Routes.configureRoutes(_router);
    if (_isInitialized){
      _isInitialized = false;
    }
  }

  static FluroRouter getRouter(){
    if (_isInitialized) {
      Routes.configureRoutes(_router);
      _isInitialized = false;
    }
    return _router;
  }
}